#include <iostream>
#include <ctime>
#include <cstdlib>

int main()
{
	std::srand(std::time(0));
	int n = 200, upper = 1000;
	std::cout << n << '\n';
	for (int i = 0 ; i < n; i++) {
		int x1 = rand() % upper;
		int x2 = rand() % upper;
		int y1 = rand() % upper;
		int y2 = rand() % upper;
		if (rand() % 2) x2 = x1;
		else y2 = y1;
		std::cout << x1 << ' ' << y1 << ' ' << x2 << ' ' << y2 << '\n';
	}
}

